var home_data;
$(document).ready(
		function() {
			home_data = JSON.parse($(".s_temple_setting.home_head").html());
			if (home_data.isOwner)
				$(".guest_only").hide();
			else
				$(".owner_only").hide();
			$(".s_target_head").attr("src", home_data.profile.head_image_path);
			$(".s_target_name").html(home_data.profile.name);
			$(".s_target_uid").html(home_data.profile.uid);
			$(".s_target_name_href").html(home_data.profile.name).attr("href",
					getHomeURL(home_data.profile.uid));
			$(".s_target_motto").html(home_data.profile.motto);
			$(".s_target_introduce").html(home_data.profile.introduce);
			$(".s_target_gender").html(
					home_data.profile.gender == 0 ? "男" : "女");
			$(".s_target_user_type").html(home_data.profile.user_type);
			$(".s_target_user_type_chinese").html(
					user_type_to_string(home_data.profile.user_type));
			$(".s_home_head").html(home_data.call + "家园");
			$(".notice_amount").html(home_data.noticeamount);
			$(".leavemessage_amount").html(home_data.notreadlmamount);
			$(".notice_total_amount").html(
					parseInt(home_data.noticeamount)
							+ parseInt(home_data.notreadlmamount));
			$("#fixed_home").addClass("active");

		});
function getHomeData() {
	return home_data;
}
function isOwner() {
	return home_data.isOwner;
}
function getClassData() {
	return home_data.classdata;
}